package Homework.Top05;

public class Aircraft extends Fighter{
    private int seatsNum;

    public int getSeatsNum() {
        return seatsNum;
    }

    public void setSeatsNum(int seatsNum) {
        this.seatsNum = seatsNum;
    }

    public Aircraft(String barin,double weight, double height){
        super(barin,weight,height);
        this.seatsNum=getSeatsNum();
    }
    public void take_off(){
        System.out.println(getWeight()+"吨的"+getBairn()+"正在起飞");
    }
    public void accelerate(){
        System.out.println(getWeight()+"吨的"+getBairn()+"正在加速");
    }
    public void land(){
        System.out.println(getWeight()+"吨的"+getBairn()+"正在降落\t高度是"+getHeight());
    }



}
